﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnqueteMobile.Repository.Database.Model
{
    [Table("LogApp")]
    public class LogApp
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        [MaxLength(3000)]
        public String Descricao { get; set; }
        
        [Required]
        public long Sistema { get; set; }
        
        [MaxLength(15)]
        [Required]
        public String IP { get; set; }

        public Nullable<DateTime> DataHoraRegistroLogApp { get; set; }
        
        [MaxLength(120)]
        [Required]
        public String LoginDoUsuario { get; set; }
        
        [MaxLength(120)]
        [Required]
        public String Modulo { get; set; }
        
        [MaxLength(120)]
        public String Classe { get; set; }
        
        [MaxLength(120)]
        public String Metodo { get; set; }
        
        [MaxLength(8000)]
        public String Parametros { get; set; }

        [MaxLength(300)]
        [Required]
        public String UrlArquivoFonte { get; set; }
        
        [MaxLength(8)]
        public String NumeroLinhaCodigoFonte { get; set; }
        
        public Nullable<long> TipoDeAcaoDaAplicacao { get; set; }
        
        [MaxLength(8000)]
        public String SQL_Code { get; set; }
        
        [MaxLength(120)]
        public String TipoExcecao { get; set; }
        
        [MaxLength(8000)]
        public String ExcecaoCapturada { get; set; }
        
        [MaxLength(8000)]
        public String Source { get; set; }
    }
}